-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here

// 支持pug折叠
vim.api.nvim_create_autocmd("FileType", {
  pattern = "pug",
  callback = function()
    vim.opt_local.foldmethod = "indent"
    vim.opt_local.foldlevel = 99 -- 默认展开所有折叠
  end,
})
